import { createRouter, createWebHistory } from 'vue-router'
import Home from '@/views/Home.vue'
import Login from '@/views/Login.vue'
import SecondHand from '@/views/SecondHand.vue'
import Forum from '@/views/Forum.vue'
import LunchLottery from '@/views/LunchLottery.vue'
import AIQA from '@/views/AIQA.vue'
import Friends from '@/views/Friends.vue'
import PersonalCenter from '@/views/PersonalCenter.vue'

const router = createRouter({
    history: createWebHistory(),
    routes: [
        { path: '/', redirect: '/home' },
        { path: '/home', component: Home },
        { path: '/second-hand', component: SecondHand },
        { path: '/forum', component: Forum },
        { path: '/lunch-lottery', component: LunchLottery },
        { path: '/ai-qa', component: AIQA },
        { path: '/friends', component: Friends },
        { path: '/personal-center', component: PersonalCenter },
        { path: '/login', component: Login }
    ]
})

export default router